#include "FanPwm.h"
#include "Timer1.h"

void FanPwm_init(void)
{
	Timer1_init();
}

void FANPWM_upadate(void)
{
	uint32_t value32;
	uint16_t value16;
	value32 = ((uint32_t)s_data.fanpwm_ch0) * ((uint32_t)TIMER1_RESOLUTION);
	value16 = (uint16_t)(value32 / 100);
	setTCCR1A(value16);
}
